<template>
    <div>
        <h1>nav 导航 - 二级路由组件</h1>
    </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { useRoute } from 'vue-router'
export default defineComponent({
    setup () {
        let route = useRoute();
        console.log(route)//proxy对象
        console.log(route.query)
        console.log(route.query.id)//01
        console.log(route.query.shopList)//JSON 字符串


 

        return {
            route,
      
        }
    }
})
</script>

<style scoped>

</style>